CFLAGS=-g -lm

SOURCES=acos.c asin.c atan.c atan2.c ceil.c cos.c cosh.c exp.c fabs.c floor.c \
		fmod.c frexp.c ldexp.c log.c log10.c modf.c pow.c sin.c sinh.c sqrt.c \
		tan.c tanh.c

PROGRAMS=$(SOURCES:.c=)

all: ${PROGRAMS}

acos: acos.c
	${CC} ${CFLAGS} -o $@ $<   
asin: asin.c
	${CC} ${CFLAGS} -o $@ $< 
atan: atan.c
	${CC} ${CFLAGS} -o $@ $< 
atan2: atan2.c
	${CC} ${CFLAGS} -o $@ $< 
ceil: ceil.c
	${CC} ${CFLAGS} -o $@ $< 
cos: cos.c
	${CC} ${CFLAGS} -o $@ $< 
cosh: cosh.c
	${CC} ${CFLAGS} -o $@ $< 
exp: exp.c
	${CC} ${CFLAGS} -o $@ $<   
fabs: fabs.c
	${CC} ${CFLAGS} -o $@ $< 
floor: floor.c
	${CC} ${CFLAGS} -o $@ $< 
fmod: fmod.c
	${CC} ${CFLAGS} -o $@ $< 
frexp: frexp.c
	${CC} ${CFLAGS} -o $@ $< 
ldexp: ldexp.c
	${CC} ${CFLAGS} -o $@ $< 
log: log.c
	${CC} ${CFLAGS} -o $@ $<
log10: log10.c
	${CC} ${CFLAGS} -o $@ $<   
modf: modf.c
	${CC} ${CFLAGS} -o $@ $< 
pow: pow.c
	${CC} ${CFLAGS} -o $@ $< 
sin: sin.c
	${CC} ${CFLAGS} -o $@ $< 
sinh: sinh.c
	${CC} ${CFLAGS} -o $@ $< 
sqrt: sqrt.c
	${CC} ${CFLAGS} -o $@ $< 
tan: tan.c
	${CC} ${CFLAGS} -o $@ $<
tanh: tanh.c
	${CC} ${CFLAGS} -o $@ $<   
    
clean:
	rm -rf ${PROGRAMS}
